module.exports = {
  // mode: "production",
/*   configureWebpack: {
  
    module: {
      rules: [
        {
          test: /\.ts?$/,
          use: 'ts-loader',
          exclude: /node_modules/,
        },
      ],
    },
    resolve: {
      extensions: ['.ts', '.js'],
    },
  }, */
  css: {
    loaderOptions: {
        less: {
          modifyVars: {
          },
          javascriptEnabled: true
        }
      }
  },
  devServer: {
    // /*       port: 端口号, */
    disableHostCheck: true,	// 取消验证 host
    proxy: {
      '/api': {
        target: 'http://localhost:2406/api', // 本机nginx 中转
        ws: true,  // proxy websockets
        changeOrigin: true,  // needed for virtual hosted sites
        pathRewrite: {
          '^/api': ''  // rewrite path
        }
      }
    }
  },
  publicPath: '/',//打包后的位置(如果不设置这个静态资源会报404)
  
};

